

<dd class="mr10 tc" style="position: relative;">
    <label>客户地址:</label>
    <span class="ui-combo-wrap" id="contactAddr">
      <input type="text" id="addr" style="width: 332px;" class="input-txt" autocomplete="off" placeholder="" {if condition='!isset($info.addr)'} value="" {else/} value="{$info.addr}"{/if}  {if condition="isset($info.status) && $info.status eq 1"} disabled="disabled" {/if}>
      <i class="trigger"></i>
    </span>
    <div class="addr-drop-wrap">
      <span class="triangle-border"></span>
      <span class="triangle-bg"></span>
      <div class="addr-drop">
        <span id="addrContent"></span>
      </div>
    </div>
    {if condition="!isset($info.status) || $info.status eq 0"}
    <span  id="edit_addr" class="edit-addr">
      <i class="ui-icon-edit"></i>
    </span>
    {/if}
</dd>




<script>
    $(document).ready(function () {

        // 修改联系地址
        $("#edit_addr").on("click",function(){
            var addrText=$("#addr").val();
            if(addrText!=null && addrText!=""){
                layer.open({
                    type: 2,
                    title: "修改客户地址",
                    shadeClose: true,
                    shade: 0.3,
                    maxmin: false, //开启最大化最小化按钮
                    area: ['700px', '530px'],
                    fixed: false, //不固定
                    btn: ['确定', '取消'],
                    content: "/admin/basic/edit_address.html",//多选，客户
                    btn1: function (index, layero) {
                        
                        layer.close(index);
                        return false;
                    },
                    btn2: function (index, layero) {
                        layer.close(index);
                        return false;
                    }
                })
            }
        });

    });
</script>






